package com.mapper;

import java.util.List;
import java.util.Map;

import com.model.Photos;

public interface PhotosMapper {

	//返回所有记录
	public List<Photos> findPhotosList();
	
	//查询多条记录
	public List<Photos> query(Map<String,Object> inputParam);
	
	//得到记录总数
	int getCount(Map<String,Object> inputParam);
	
	//添加
	public int insertPhotos(Photos photos);

	//根据ID删除
	public int deletePhotos(int id);
	
	//更新
	public int updatePhotos(Photos photos);
	
	//根据ID得到对应的记录
	public Photos queryPhotosById(int id);
	
}

